const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const SkeletonPlugin = require('./src/skeleton')

module.exports = {
    mode: 'development',
    entry: {
        app: './src/index.ts',
    },
    devtool: 'inline-source-map',
    devServer: {},
    plugins: [
        new HtmlWebpackPlugin({
            template: path.resolve(__dirname, 'public/index.html'),
        }),
        new SkeletonPlugin({
            url: path.resolve(__dirname, 'src/template.html'),
            root:'#app'
        })
    ],
}